﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

internal class MyMessageFilter : IMessageFilter
{
    public bool PreFilterMessage(ref Message m)
    {
        bool retVal = false;
        // look for any message that was the result of user input
        switch (m.Msg)
        {
            case 0x200:
                // WM_MOUSEMOVE
                break;
            case 0x20a:
                // WM_MOUSEWHEEL
                break;
            case 0x100:
                // WM_KEYDOWN
                break;
            case 0x101:
                // WM_KEYUP
                retVal = true;
                FormGlobals._IdleLastTime = DateTime.MaxValue;
                break;
            default:
                retVal = false;
                break;
        }
        return retVal;
    }
}